package p270jp.pxv.android.view;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatImageView;

/* renamed from: jp.pxv.android.view.PixivImageView */
/* loaded from: classes2.dex */
public class PixivImageView extends AppCompatImageView {

    /* renamed from: d */
    public int f19654d = -1;

    /* renamed from: e */
    public int f19655e = -1;

    public PixivImageView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    public int getMaxBitmapHeight() {
        return this.f19655e;
    }

    public int getMaxBitmapWidth() {
        return this.f19654d;
    }

    @Override // android.widget.ImageView, android.view.View
    public void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        if (canvas.isHardwareAccelerated()) {
            this.f19654d = canvas.getMaximumBitmapWidth();
            this.f19655e = canvas.getMaximumBitmapHeight();
        }
    }
}
